//
// Created by Administrator on 2025/4/19.
//

#ifndef THREADPOOL_THREAD_H
#define THREADPOOL_THREAD_H

#include <functional>
#include <thread>

class Thread {
public:
    using ThreadFun = std::function<void()>;
    Thread(ThreadFun fun);
    ~Thread();

    void start();
private:
    ThreadFun _threadFun;
};


#endif //THREADPOOL_THREAD_H
